package com.example.jacocotestdemo;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
public class JacocoTestDemoApplication {

    //-javaagent:/Users/lyl/workSpace/dev-env/jacoco/lib/jacocoagent.jar=includes=*,output=tcpserver,port=6300,address=localhost,append=true

    //java -jar /Users/lyl/workSpace/dev-env/jacoco/lib/jacococli.jar dump --address localhost --port 6300 --destfile jacoco.exec

    //java -jar /Users/lyl/workSpace/project/student/jacoco/jacoco/org.jacoco.cli/target/org.jacoco.cli-0.8.7-SNAPSHOT-nodeps.jar dump --address localhost --port 6300 --destfile jacoco.exec

    //java -jar  /Users/lyl/workSpace/project/student/jacoco/jacoco/org.jacoco.cli/target/org.jacoco.cli-0.8.7-SNAPSHOT-nodeps.jar report jacoco.exec  --classfiles target/classes --sourcefiles src/main/java --html report
    //--diffCode "[{\"classFile\":\"com/example/jacocotestdemo/controller/TestController\",\"lines\":[{\"endLineNum\":3,\"startLineNum\":2,\"type\":\"INSERT\"},{\"endLineNum\":16,\"startLineNum\":15,\"type\":\"INSERT\"}],\"methodInfos\":[{\"methodName\":\"getSuiteList\",\"parameters\":\"String\"}],\"moduleName\":\"src\",\"type\":\"MODIFY\"},{\"classFile\":\"com/example/jacocotestdemo/utils/TestUtil\",\"lines\":[{\"endLineNum\":21,\"startLineNum\":0,\"type\":\"INSERT\"}],\"methodInfos\":[],\"moduleName\":\"src\",\"type\":\"ADD\"}]"

    public static void main(String[] args) {
        SpringApplication.run(JacocoTestDemoApplication.class, args);
    }


}
